package printing;

public class Machine {
	
	protected boolean isOn;
	
	public Machine(boolean isOn){
		
		this.isOn = isOn;
	}
	
	public void turnOn(){
		isOn = true;
		System.out.println("The machine is ON!");
	}
	
	public void turnOff(){
		isOn = false;
		System.out.println("The machine is OFF!");
	}

}
